You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > BitPack Method > MatrixInt.BitPack Method ([In] TMtxInt)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.BitPack Method ([In] TMtxInt)

Converts Src to packed bit storage.

Syntax
C#
Visual Basic
public TMtxInt BitPack([In] TMtxInt Src);

If Src[i] <> 0 then bit at index "i" in the calling vector is set to 1. If Src.Length is not divisable with 32, the remaining bits in the last sample are left at 0. The storage precision of the calling object is set to prInt32. The size of the calling object is adjusted automatically. Packing if array with precision other than Int32 is 8x slower. Packing of array with precision other than Int32 is 8x slower.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!